package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by lsx on 2018-01-19.
 */

public class AdditionalInfo extends BaseModel<AdditionalInfo>  {
    /**
     * refuel_total_amount : null
     * refuel_total_amount_format : ￥0.00元
     * refuel_total_count : 0
     */

    private Object additional_total_amount;
    private String additional_total_amount_format;
    private String additional_total_count;

    public Object getAdditional_total_amount() {
        return additional_total_amount;
    }

    public void setAdditional_total_amount(Object additional_total_amount) {
        this.additional_total_amount = additional_total_amount;
    }

    public String getAdditional_total_amount_format() {
        return additional_total_amount_format;
    }

    public void setAdditional_total_amount_format(String additional_total_amount_format) {
        this.additional_total_amount_format = additional_total_amount_format;
    }

    public String getAdditional_total_count() {
        return additional_total_count;
    }

    public void setAdditional_total_count(String additional_total_count) {
        this.additional_total_count = additional_total_count;
    }

    @Override
    public AdditionalInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            additional_total_amount = jsonObject.optString("additional_total_amount");
            additional_total_amount_format = jsonObject.optString("additional_total_amount_format");
            additional_total_count = jsonObject.optString("additional_total_count");
            return this;
        }
        return null;
    }
}

